//
//  LSZRightAndWrongTableViewCell.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/9/8.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZRightAndWrongTableViewCell.h"

@implementation LSZRightAndWrongTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self prepareLayout];
    }
    return self;
}
-(void)prepareLayout
{
    self.butYes = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.butYes.frame = CGRectMake(20, 5, 30, 30);
    [self.butYes setImage:[UIImage imageNamed:@"党建_未选中"] forState:(UIControlStateNormal)];
//    [self.butYes setImage:[UIImage imageNamed:@"党建_选中"] forState:(UIControlStateSelected)];
    //    self.choseBtn.enabled = NO;
    [self.contentView addSubview:self.butYes];
    
    self.labelYes  = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.butYes.frame), 5,ScreenWidth/2 - 30, 30)];
    self.labelYes.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.labelYes];
    
    self.butNo = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.butNo.frame = CGRectMake(20+ScreenWidth/2, 5, 30, 30);
    [self.butNo setImage:[UIImage imageNamed:@"党建_未选中"] forState:(UIControlStateNormal)];
//    [self.butNo setImage:[UIImage imageNamed:@"党建_选中"] forState:(UIControlStateSelected)];
    //    self.choseBtn.enabled = NO;
    [self.contentView addSubview:self.butNo];
    
    self.labelNo  = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.butNo.frame), 5,ScreenWidth/2 - 30, 30)];
    self.labelNo.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.labelNo];
}

@end
